<?php 

require_once('../shared/connect.php');

if (!empty($_POST['ids'])) {

	$sql = "DELETE FROM location WHERE id IN (".implode(",",$_POST['ids']).")";

	$delete = mysql_query($sql) or die(mysql_error());
}

?>